package com.example.lib_storage.database.dao

import androidx.room.Dao
import androidx.room.Insert
import androidx.room.Query
import com.example.lib_storage.database.entity.TakeVideoEntity


/**
 * @author ytx 
 * @createDate 2022/9/24 8:50
 * @description
 *
 * @updateUser ytx
 * @updateDate 2022/9/24 8:50
 * @updateRemark
 *
 * @version 1.0.0
 */
@Dao
interface TakeVideoDao {

    @Query("SELECT * FROM b_takevideo order by id desc")
    fun getAll():List<TakeVideoEntity>

    @Insert
    fun insertAll(vararg videoEntity: TakeVideoEntity)
}